//
//  DynamicNewsViewController.m
//  fitness-iOS
//
//  Created by 卢仕彤 on 2017/11/7.
//  Copyright © 2017年 卢仕彤. All rights reserved.
//

#import "DynamicNewsViewController.h"
#import <SDCycleScrollView.h>

@interface DynamicNewsViewController ()

@property (nonatomic, strong) SDCycleScrollView *sdCyView;

@end

@implementation DynamicNewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.navigationController setNavigationBarHidden:YES animated:YES];
    self.view.backgroundColor = [UIColor greenColor];
    UIImage *image = [UIImage imageNamed:@"home_bar_scan"];
    UIImage *image1 = [UIImage imageNamed:@"home_bar_scan"];
    UIImage *image2 = [UIImage imageNamed:@"home_bar_scan"];
    
    
    SDCycleScrollView *cycleScrollView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0, Main_Screen_Width, 300) imagesGroup:@[image,image1,image2]];
    
    [self.view addSubview:cycleScrollView];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark lazyinit

- (SDCycleScrollView *)SDcyView {
    if (!_sdCyView) {
        _sdCyView = [[SDCycleScrollView alloc] init];
    }
    return _sdCyView;
}

@end
